//
//  UIView+WDSD.h
//  WDLoan
//
//  Created by 邓乐 on 2016/10/10.
//  Copyright © 2016年 wanda. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, WDViewBorder) {
    WDViewBorderTop = 0b0001,
    WDViewBorderLeft = 0b0010,
    WDViewBorderBottom = 0b0100,
    WDViewBorderRight = 0b1000,
    WDViewBorderHorizontal = WDViewBorderLeft|WDViewBorderRight,
    WDViewBorderVertical = WDViewBorderTop|WDViewBorderBottom,
    WDViewBorderAll = WDViewBorderHorizontal|WDViewBorderVertical,
};

typedef void (^UITouchBlock)(void);

@interface UIView (WDSD)

- (void)setBorders:(NSArray *)parameters Width:(CGFloat)width color:(UIColor *)color;

- (void)setBorder:(WDViewBorder)border Width:(CGFloat)width Color:(UIColor*)color;

- (void)setBorder:(WDViewBorder)border Width:(CGFloat)width margin:(CGFloat)margin radius:(CGFloat)radius color:(UIColor *)color;

- (void)removeBorder;

- (void)addActionWithBlock:(UITouchBlock)block;

@end
